package com.samuel.event;


import org.springframework.context.ApplicationEvent;

/**
 * @date:2017/11/22
 * @time: 11:30
 * @author:zhaoyang
 * @desc:
 **/
public class DemoEvent extends ApplicationEvent {

    private String msg;

    public DemoEvent(Object source,String msg) {

        super(source);
        this.msg=msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
